﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ScrumTime.Models.Story>" %>

<script type="text/javascript">
    
</script>

<table style="width:964px;font-family:Verdana;padding:0;border:2px solid #999;height:30px;margin-left:0px;
            background-color:#f3f3f3;font-size:12px;color:#666;" cellpadding="0" cellspacing="0">
            <tr>
                <td style="text-align:center;width:68px;border:0px;background-color:#f3f3f3;">Priority</td>
                <td style="text-align:center;width:102px;border:0px;background-color:#f3f3f3;">Id/Name</td>
                <td style="border:0px;width:490px;background-color:#f3f3f3;text-align:left;">Narrative</td>    
                <td style="text-align:center;width:80px;border:0px;background-color:#f3f3f3;">Duration</td>                
                <td style="text-align:center;width:80px;border:0px;background-color:#f3f3f3;">Points</td>
                <td style="width:30px;border:0px;background-color:#f3f3f3;"></td>
            </tr>
            <% 
                foreach (  ScrumTime.Models.Story ubs in Model.Stories1) {
            %>

             <tr>
                <td style="vertical-align:middle;text-align:center;width:68px;border:0px;font-size:11px;">
                    <a class="simpleLink" href="#" onclick="show_story(<%:ubs.StoryId%>)" > 
					<%: ubs.Priority.ToString() %> 
					</a>
                </td>
                <td style="vertical-align:middle;text-align:center;width:108px;border:0px;font-size:11px;">
                    <a class="simpleLink" href="#" style="font-style:italic;" onclick="show_story(<%:ubs.StoryId%>)" > 
                    <%: ubs.UserDefinedId %>
                    </a>
                </td>
                <td style="border:0px;width:510px">
                    <a class="simpleLink" href="#"onclick="show_story(<%:ubs.StoryId%>)" > 
                    <%: ubs.Narrative %>
                    </a>
                </td>
                <td style="vertical-align:middle;text-align:center;width:80px;border:0px;font-size:11px;">
                    <a class="simpleLink" href="#" onclick="show_story(<%:ubs.StoryId%>)" > 
                        duration
                    </a>
                </td>
                <td style="vertical-align:middle;text-align:center;width:80px;border:0px;font-size:11px;">
                    <a class="simpleLink" href="#" onclick="show_story(<%:ubs.StoryId%>)" > 
                        <%: ubs.Points.ToString() %>
                    </a>
                </td>
            </tr>
            <%        
                }                   
            %>
        
</table>